﻿@{
    ViewBag.Title = "新增工作组";
}
@model DotNet.Model.MyEntity.Base_Workgroup          
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#form_Permission_Workgroup_CreateWorkgroup").submit(function () {
            return false;
        });
    });   
</script>
<div class="pageContentD">
    @{Html.EnableClientValidation();}
    @using (Html.BeginForm("WorkgroupCreating", "Workgroup", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAdded_Permission_Workgroup);", @id = "form_Permission_Workgroup_CreateWorkgroup", @class = "pageForm" }))
    {   
        <div class="pageFormContent" layouth="60">
            <table width="95%" class="tab01">
                <tr>
                    <td class="td1">
                        <label>
                            名称：</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.Name, new Dictionary<string, object> { { "alt", "请输入名称" } })
                        @Html.ValidationMessageFor(m => m.Name)
                        <input name="ParentId" type="hidden" value='@ViewBag.ParentID' />
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        <label>
                            备 注：</label>
                    </td>
                    <td>
                        @Html.TextAreaFor(m => m.Description)
                    </td>
                </tr>
            </table>
        </div>
        <div class='formBar'>
            <ul>
                <li>
                    <button type="submit" class="btn btn-success btn-sm" id="btnSave_permission_Workgroup_createWorkgroup">
                        保存</button>
                </li>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">
                        取消</button>
                </li>
            </ul>
        </div>
    }
</div>
